package com.quectel.cms.vo.datav;

import com.quectel.util.common.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author rananxin
 * @date 2021/12/7 2:23 下午
 */
@Data
@Schema
public class FireSafetyAlarmEventVo {

    @Schema(description = "今日告警事件总数")
    private Integer alarmCountToday;

    private Page<AlarmEventItem> page;

    @Data
    public static class AlarmEventItem {

        @Schema(description = "设备id")
        private Long deviceId;

        @Schema(description = "设备唯一标识")
        private String deviceUniqueId;

        @Schema(description = "设备名称")
        private String deviceName;

        @Schema(description = "设备类型编码")
        private String deviceTypeCode;

        @Schema(description = "设备类型名称")
        private String deviceTypeName;

        @Schema(description = "设备种类编码")
        private String deviceCategoryCode;

        @Schema(description = "设备种类名称")
        private String deviceCategoryName;

        @Schema(description = "告警规则编码")
        private String ruleCode;

        @Schema(description = "告警规则名称")
        private String ruleName;

        @Schema(description = "告警时间")
        private Date startTime;
    }
}
